package com.shujia.wyh.day12.homework.car;

public class Taxi extends Car {
    private String taxiCompany;

    public Taxi(String kind, String card, String taxiCompany) {
        super(kind, card);
        this.taxiCompany = taxiCompany;
    }

    @Override
    public void start() {
        System.out.println("我是" + taxiCompany + "的，我的车牌是" + super.getCard()+"，您要去哪里？");
    }

    @Override
    public void stop() {
        System.out.println("目的地已经到了，请您付费下车，欢迎再次乘坐");
    }
}
